x2APIC: simplify resume
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 25 Oct 2019 13:59:34 +0000 (15:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Oct 2019 13:59:34 +0000 (15:59 +0200)
commit7b1e23376968cd1ab3bcae3939524e3dd84b89dc
treefedd80253ac8f519dd373ebdbaaef0ce085be4d5
parent64b5d83460af4654b88c6598ede7e74dd37dce2e
x2APIC: simplify resume

There's no need to save and restore the IO-APIC entries, the entries
prior to suspension have already been saved by ioapic_suspend, and
will be restored by ioapic_resume. Note that at the point where
resume_x2apic gets called the IO-APIC has not yet resumed, and hence
all entries should be masked.

Note this shouldn't introduce any functional change.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Tested-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/x86/apic.c